import { default as request, cloud } from '@/framework/utils/request'
const getCarList = (params) => request({ url: cloud.dqbasic + '/car/findPage', method: 'get', params })
const getCarDetail = (params) => request({ url: cloud.dqbasic + '/car/detail', method: 'get', params })
const addCar = (params) => request({ url: cloud.dqbasic + '/car/add', method: 'post', data: params })
const editCar = (params) => request({ url: cloud.dqbasic + '/car/edit', method: 'post', data: params })
const deleteCar = (params) => request({ url: cloud.dqbasic + '/car/delete', method: 'post', data: params })

export {
  getCarList,
  getCarDetail,
  addCar,
  editCar,
  deleteCar
}
